home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / QuickDraw™ GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / LaserWriterIIsc (New GX v1.1) / SCPrinterStatus.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  2.0 KB  |  59 lines  |  [TEXT/MPS ]

  1. /*---------------------------------------------------------------------------
  2. FILENAME
  3.     SCPrinterStatus.h
  4.  
  5. DESCRIPTION
  6.     This module contains the constant and type declarations for the 
  7.     SCPrinterStatus.c file.  That file contains the routines which manage
  8.     checking the status of the SC printer and alerting the user (as needed) to
  9.     problems that might arise.
  10.     
  11.     Note: this file contains some types and constants that need to be moved
  12.     from the Universal Driver to the public printing interfaces.
  13.         
  14. COPYRIGHT
  15.     Copyright Apple Computer, Inc. 1989-1992
  16.     All rights reserved. 
  17.  
  18. -------------------------------------------------------------------------- */
  19.  
  20. #ifndef __SCPRINTERSTATUS__
  21. #define __SCPRINTERSTATUS__
  22.     
  23.  
  24. /*********************************************************************************
  25.  *                                         CONSTANTS                                                     *
  26.  *********************************************************************************/
  27.  
  28. // Miscellaneous constants 
  29. enum
  30. {
  31.     kNoPrinterProblem        = nil,        // Indicates printer is not experiencing any problems 
  32.     kQueryRate                = 15            // Number of ticks between status commands to the printer
  33. };
  34.  
  35.  
  36. /*********************************************************************************
  37.  *                                            DEFINES                                                    *
  38.  *********************************************************************************/
  39.  
  40. #define    GetStatResID(printerProblem)            HiWord(printerProblem)
  41. #define    GetStatResIndex(printerProblem)        LoWord(printerProblem)
  42.  
  43.  
  44. /*********************************************************************************
  45.  *                                    FORWARD DECLARATIONS                                            *
  46. **********************************************************************************/
  47.  
  48. void SetPrinterProblemStatResIndex(short statResIndex, long *printerProblem);
  49.  
  50. void SetPrinterProblemStatResID(short statResID, long *printerProblem);
  51.  
  52. OSErr FindPrinterProblem(long *printerProblem,  Boolean *fAbort);
  53.  
  54. OSErr ResolvePrinterProblem(    long             printerProblem, 
  55.                                         Boolean         manualFeed,
  56.                                         gxPaperType    thePaperType,
  57.                                         short            *dialogResult);
  58.  
  59. #endif __SCPRINTERSTATUS__